/*=========================================================================

Program:   Medical Imaging & Interaction Toolkit
Language:  C++
Date:      $Date $
Version:   $Revision $

Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt or http://www.mitk.org/copyright.html for details.

This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

#ifndef QMITKPRIMITIVEMOVIENAVIGATORWIDGET_H_
#define QMITKPRIMITIVEMOVIENAVIGATORWIDGET_H_

#include <ui_QmitkPrimitiveMovieNavigatorWidget.h>
#include "QmitkExtExports.h"
#include <QWidget>
#include <QTimer>

class QmitkExt_EXPORT QmitkPrimitiveMovieNavigatorWidget : public QWidget//, public Ui::QmitkPrimitiveMovieNavigator
{
    Q_OBJECT

public:
    QmitkPrimitiveMovieNavigatorWidget( QWidget* parent = 0, Qt::WindowFlags fl = 0 );
    ~QmitkPrimitiveMovieNavigatorWidget();

    virtual int getTimerInterval();

public slots:
    virtual void Refetch();
    virtual void SetStepper( mitk::Stepper * stepper );
    virtual void goButton_clicked();
    virtual void stopButton_clicked();
    virtual void spinBoxValueChanged(int value);
    virtual void setTimerInterval( int timerIntervalInMS );

protected:
    Ui::QmitkPrimitiveMovieNavigator m_Controls;
    mitk::Stepper::Pointer m_Stepper;
    bool m_InRefetch;
    QTimer* m_Timer;
    int m_TimerIntervalInMS;

private slots:
    virtual void next();

};

#endif /* QMITKPRIMITIVEMOVIENAVIGATORWIDGET_H_ */
